<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../5.19/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>{{perTitle}}</p>
        <br />
        <my-conponent v-bind:mytitle="perTitle"></my-conponent>
    </div>
</body>
<script>
    Vue.component('my-conponent',{
        props:['mytitle'],
        template:"<div>接收父组件传递的信息为：{{mytitle}}</div>"
    })
    var vm=new Vue({
        el:"#app",
        data:{
            perTitle:"我是父类信息",
        }
    })
</script>
</html>